package com.hotel.dao;

import java.sql.SQLException;

import com.hotel.bean.Regist;
import com.hotel.util.BaseDao;


public interface UserDao extends BaseDao<Regist>{

	//即便内部为空，也需要保存，便于扩展
	
	//根据用户名和密码查询用户
	Regist queryByNameAndPsw(String name, String password) throws SQLException;
	
	//根据用户名查询用户
	Regist queryByName(String name) throws SQLException;
	
	
}
